﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace InsideDL.MISControl
{
    public partial class ucTextBox : UserControl
    {
        public string Text
        { 
            get
            {
                return textBox1.Text;
            }
            set
            {
                textBox1.Text = value;
            }
        }

        protected Color defaultColor = Color.White;
        public ucTextBox()
        {
            InitializeComponent();
            this.Height = textBox1.Height;            
        }

        private void textBox1_Enter(object sender, EventArgs e)
        {
            textBox1.BackColor = Color.Yellow;
        }

        private void textBox1_Leave(object sender, EventArgs e)
        {
            textBox1.BackColor = defaultColor;   
        }

    }
}
